package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.State;

/**
 * 生产工单状态枚举
 */
public enum ProductionOrderStateEnum implements State {
    
    NOT_STARTED("NOT_STARTED", "未开始", "PRODUCTION_ORDER"),
    IN_PROGRESS("IN_PROGRESS", "进行中", "PRODUCTION_ORDER"),
    PAUSED("PAUSED", "暂停", "PRODUCTION_ORDER"),
    EXCEPTION("EXCEPTION", "异常", "PRODUCTION_ORDER"),
    COMPLETED("COMPLETED", "已完成", "PRODUCTION_ORDER");
    
    private final String code;
    private final String description;
    private final String stateType;
    
    ProductionOrderStateEnum(String code, String description, String stateType) {
        this.code = code;
        this.description = description;
        this.stateType = stateType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getStateType() {
        return stateType;
    }
}